package com.hung.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * Created by Administrator on 2017/4/21.
 */
@RestController
@RequestMapping("testController")
public class TestController {

    @Autowired
    private RestTemplate restTemplate;
    @RequestMapping(value = "test",method = RequestMethod.GET)
    public Object test(){
        return restTemplate.getForEntity("http://192.168.1.85:9000/reminder-service/api/reminderMessageController/getReminderMessages",String.class);
    }
}
